package me.flyray.bsin.server.domain._gen;

import java.util.Map;
import java.util.HashMap;
import java.util.Arrays;
import java.util.List;

import java.io.Serializable;

import me.flyray.bsin.server.domain.SysOrg;

// tell cpd to start ignoring code - CPD-OFF
/**
 *  Sysorg: sys_org
 */
@SuppressWarnings({"PMD"})
public class _SysOrg implements Serializable{
    
    /* 机构id: ORG_ID VARCHAR */
    public static final String PROP_NAME_orgId = "orgId";
    public static final int PROP_ID_orgId = 1;
    
    /* 机构编号: ORG_CODE VARCHAR */
    public static final String PROP_NAME_orgCode = "orgCode";
    public static final int PROP_ID_orgCode = 2;
    
    /* 机构名: ORG_NAME VARCHAR */
    public static final String PROP_NAME_orgName = "orgName";
    public static final int PROP_ID_orgName = 3;
    
    /* 排序: SORT INTEGER */
    public static final String PROP_NAME_sort = "sort";
    public static final int PROP_ID_sort = 4;
    
    /* 父级编号: PARENT_ID VARCHAR */
    public static final String PROP_NAME_parentId = "parentId";
    public static final int PROP_ID_parentId = 5;
    
    /* 机构级别: LEVEL INTEGER */
    public static final String PROP_NAME_level = "level";
    public static final int PROP_ID_level = 6;
    
    /* 机构类型 1、公司 2、部门 3、小组 4、其他: TYPE INTEGER */
    public static final String PROP_NAME_type = "type";
    public static final int PROP_ID_type = 7;
    
    /* 负责人: LEADER VARCHAR */
    public static final String PROP_NAME_leader = "leader";
    public static final int PROP_ID_leader = 8;
    
    /* 办公电话: PHONE VARCHAR */
    public static final String PROP_NAME_phone = "phone";
    public static final int PROP_ID_phone = 9;
    
    /* 地址: ADDRESS VARCHAR */
    public static final String PROP_NAME_address = "address";
    public static final int PROP_ID_address = 10;
    
    /* 描述: REMARK VARCHAR */
    public static final String PROP_NAME_remark = "remark";
    public static final int PROP_ID_remark = 11;
    
    /* 电子邮箱: EMAIL VARCHAR */
    public static final String PROP_NAME_email = "email";
    public static final int PROP_ID_email = 12;
    
    /* 租户编号: TENANT_ID VARCHAR */
    public static final String PROP_NAME_tenantId = "tenantId";
    public static final int PROP_ID_tenantId = 13;
    
    /* 创建时间: CREATE_TIME DATETIME */
    public static final String PROP_NAME_createTime = "createTime";
    public static final int PROP_ID_createTime = 14;
    
    /* 修改时间: UPDATE_TIME DATETIME */
    public static final String PROP_NAME_updateTime = "updateTime";
    public static final int PROP_ID_updateTime = 15;
    
    /* 逻辑删除 0，未删除 1，已删除: DEL_FLAG INTEGER */
    public static final String PROP_NAME_delFlag = "delFlag";
    public static final int PROP_ID_delFlag = 16;
    

    private static int _PROP_ID_BOUND = 17;

    

    public static final List<String> PK_PROP_NAMES = Arrays.asList(PROP_NAME_orgId);
    public static final int[] PK_PROP_IDS = new int[]{PROP_ID_orgId};

    private static final String[] PROP_ID_TO_NAME = new String[17];
    private static final Map<String,Integer> PROP_NAME_TO_ID = new HashMap<>();
    static{
      
          PROP_ID_TO_NAME[PROP_ID_orgId] = PROP_NAME_orgId;
          PROP_NAME_TO_ID.put(PROP_NAME_orgId, PROP_ID_orgId);
      
          PROP_ID_TO_NAME[PROP_ID_orgCode] = PROP_NAME_orgCode;
          PROP_NAME_TO_ID.put(PROP_NAME_orgCode, PROP_ID_orgCode);
      
          PROP_ID_TO_NAME[PROP_ID_orgName] = PROP_NAME_orgName;
          PROP_NAME_TO_ID.put(PROP_NAME_orgName, PROP_ID_orgName);
      
          PROP_ID_TO_NAME[PROP_ID_sort] = PROP_NAME_sort;
          PROP_NAME_TO_ID.put(PROP_NAME_sort, PROP_ID_sort);
      
          PROP_ID_TO_NAME[PROP_ID_parentId] = PROP_NAME_parentId;
          PROP_NAME_TO_ID.put(PROP_NAME_parentId, PROP_ID_parentId);
      
          PROP_ID_TO_NAME[PROP_ID_level] = PROP_NAME_level;
          PROP_NAME_TO_ID.put(PROP_NAME_level, PROP_ID_level);
      
          PROP_ID_TO_NAME[PROP_ID_type] = PROP_NAME_type;
          PROP_NAME_TO_ID.put(PROP_NAME_type, PROP_ID_type);
      
          PROP_ID_TO_NAME[PROP_ID_leader] = PROP_NAME_leader;
          PROP_NAME_TO_ID.put(PROP_NAME_leader, PROP_ID_leader);
      
          PROP_ID_TO_NAME[PROP_ID_phone] = PROP_NAME_phone;
          PROP_NAME_TO_ID.put(PROP_NAME_phone, PROP_ID_phone);
      
          PROP_ID_TO_NAME[PROP_ID_address] = PROP_NAME_address;
          PROP_NAME_TO_ID.put(PROP_NAME_address, PROP_ID_address);
      
          PROP_ID_TO_NAME[PROP_ID_remark] = PROP_NAME_remark;
          PROP_NAME_TO_ID.put(PROP_NAME_remark, PROP_ID_remark);
      
          PROP_ID_TO_NAME[PROP_ID_email] = PROP_NAME_email;
          PROP_NAME_TO_ID.put(PROP_NAME_email, PROP_ID_email);
      
          PROP_ID_TO_NAME[PROP_ID_tenantId] = PROP_NAME_tenantId;
          PROP_NAME_TO_ID.put(PROP_NAME_tenantId, PROP_ID_tenantId);
      
          PROP_ID_TO_NAME[PROP_ID_createTime] = PROP_NAME_createTime;
          PROP_NAME_TO_ID.put(PROP_NAME_createTime, PROP_ID_createTime);
      
          PROP_ID_TO_NAME[PROP_ID_updateTime] = PROP_NAME_updateTime;
          PROP_NAME_TO_ID.put(PROP_NAME_updateTime, PROP_ID_updateTime);
      
          PROP_ID_TO_NAME[PROP_ID_delFlag] = PROP_NAME_delFlag;
          PROP_NAME_TO_ID.put(PROP_NAME_delFlag, PROP_ID_delFlag);
      
    }

    
    /* 机构id: ORG_ID */
    private java.lang.String _orgId;
    
    /* 机构编号: ORG_CODE */
    private java.lang.String _orgCode;
    
    /* 机构名: ORG_NAME */
    private java.lang.String _orgName;
    
    /* 排序: SORT */
    private java.lang.Integer _sort;
    
    /* 父级编号: PARENT_ID */
    private java.lang.String _parentId;
    
    /* 机构级别: LEVEL */
    private java.lang.Integer _level;
    
    /* 机构类型 1、公司 2、部门 3、小组 4、其他: TYPE */
    private java.lang.Integer _type;
    
    /* 负责人: LEADER */
    private java.lang.String _leader;
    
    /* 办公电话: PHONE */
    private java.lang.String _phone;
    
    /* 地址: ADDRESS */
    private java.lang.String _address;
    
    /* 描述: REMARK */
    private java.lang.String _remark;
    
    /* 电子邮箱: EMAIL */
    private java.lang.String _email;
    
    /* 租户编号: TENANT_ID */
    private java.lang.String _tenantId;
    
    /* 创建时间: CREATE_TIME */
    private java.time.LocalDateTime _createTime;
    
    /* 修改时间: UPDATE_TIME */
    private java.time.LocalDateTime _updateTime;
    
    /* 逻辑删除 0，未删除 1，已删除: DEL_FLAG */
    private java.lang.Integer _delFlag;
    

    public _SysOrg(){
    }

    protected SysOrg newInstance(){
       return new SysOrg();
    }

    public String orm_entityName() {
      return "me.flyray.bsin.server.domain.SysOrg";
    }

    
    /**
     * 机构id: ORG_ID
     */
    public java.lang.String getOrgId(){
         //onPropGet(PROP_ID_orgId);
         return _orgId;
    }

    /**
     * 机构id: ORG_ID
     */
    public void setOrgId(java.lang.String value){
        this._orgId = value;
    }
    
    /**
     * 机构编号: ORG_CODE
     */
    public java.lang.String getOrgCode(){
         //onPropGet(PROP_ID_orgCode);
         return _orgCode;
    }

    /**
     * 机构编号: ORG_CODE
     */
    public void setOrgCode(java.lang.String value){
        this._orgCode = value;
    }
    
    /**
     * 机构名: ORG_NAME
     */
    public java.lang.String getOrgName(){
         //onPropGet(PROP_ID_orgName);
         return _orgName;
    }

    /**
     * 机构名: ORG_NAME
     */
    public void setOrgName(java.lang.String value){
        this._orgName = value;
    }
    
    /**
     * 排序: SORT
     */
    public java.lang.Integer getSort(){
         //onPropGet(PROP_ID_sort);
         return _sort;
    }

    /**
     * 排序: SORT
     */
    public void setSort(java.lang.Integer value){
        this._sort = value;
    }
    
    /**
     * 父级编号: PARENT_ID
     */
    public java.lang.String getParentId(){
         //onPropGet(PROP_ID_parentId);
         return _parentId;
    }

    /**
     * 父级编号: PARENT_ID
     */
    public void setParentId(java.lang.String value){
        this._parentId = value;
    }
    
    /**
     * 机构级别: LEVEL
     */
    public java.lang.Integer getLevel(){
         //onPropGet(PROP_ID_level);
         return _level;
    }

    /**
     * 机构级别: LEVEL
     */
    public void setLevel(java.lang.Integer value){
        this._level = value;
    }
    
    /**
     * 机构类型 1、公司 2、部门 3、小组 4、其他: TYPE
     */
    public java.lang.Integer getType(){
         //onPropGet(PROP_ID_type);
         return _type;
    }

    /**
     * 机构类型 1、公司 2、部门 3、小组 4、其他: TYPE
     */
    public void setType(java.lang.Integer value){
        this._type = value;
    }
    
    /**
     * 负责人: LEADER
     */
    public java.lang.String getLeader(){
         //onPropGet(PROP_ID_leader);
         return _leader;
    }

    /**
     * 负责人: LEADER
     */
    public void setLeader(java.lang.String value){
        this._leader = value;
    }
    
    /**
     * 办公电话: PHONE
     */
    public java.lang.String getPhone(){
         //onPropGet(PROP_ID_phone);
         return _phone;
    }

    /**
     * 办公电话: PHONE
     */
    public void setPhone(java.lang.String value){
        this._phone = value;
    }
    
    /**
     * 地址: ADDRESS
     */
    public java.lang.String getAddress(){
         //onPropGet(PROP_ID_address);
         return _address;
    }

    /**
     * 地址: ADDRESS
     */
    public void setAddress(java.lang.String value){
        this._address = value;
    }
    
    /**
     * 描述: REMARK
     */
    public java.lang.String getRemark(){
         //onPropGet(PROP_ID_remark);
         return _remark;
    }

    /**
     * 描述: REMARK
     */
    public void setRemark(java.lang.String value){
        this._remark = value;
    }
    
    /**
     * 电子邮箱: EMAIL
     */
    public java.lang.String getEmail(){
         //onPropGet(PROP_ID_email);
         return _email;
    }

    /**
     * 电子邮箱: EMAIL
     */
    public void setEmail(java.lang.String value){
        this._email = value;
    }
    
    /**
     * 租户编号: TENANT_ID
     */
    public java.lang.String getTenantId(){
         //onPropGet(PROP_ID_tenantId);
         return _tenantId;
    }

    /**
     * 租户编号: TENANT_ID
     */
    public void setTenantId(java.lang.String value){
        this._tenantId = value;
    }
    
    /**
     * 创建时间: CREATE_TIME
     */
    public java.time.LocalDateTime getCreateTime(){
         //onPropGet(PROP_ID_createTime);
         return _createTime;
    }

    /**
     * 创建时间: CREATE_TIME
     */
    public void setCreateTime(java.time.LocalDateTime value){
        this._createTime = value;
    }
    
    /**
     * 修改时间: UPDATE_TIME
     */
    public java.time.LocalDateTime getUpdateTime(){
         //onPropGet(PROP_ID_updateTime);
         return _updateTime;
    }

    /**
     * 修改时间: UPDATE_TIME
     */
    public void setUpdateTime(java.time.LocalDateTime value){
        this._updateTime = value;
    }
    
    /**
     * 逻辑删除 0，未删除 1，已删除: DEL_FLAG
     */
    public java.lang.Integer getDelFlag(){
         //onPropGet(PROP_ID_delFlag);
         return _delFlag;
    }

    /**
     * 逻辑删除 0，未删除 1，已删除: DEL_FLAG
     */
    public void setDelFlag(java.lang.Integer value){
        this._delFlag = value;
    }
    
}
// resume CPD analysis - CPD-ON
